package util;

/**
* This class defines colors.
*/
public class Color
{
  public final static int white    =0xffffff;
  public final static int lightGray=0xc0c0c0;
  public final static int gray     =0x808080;
  public final static int darkGray =0x404040;
  public final static int black    =0;
    
  public final static int red      =0xff0000;
  public final static int pink     =0xffafaf;
  public final static int orange   =0xffc800;
  public final static int yellow   =0xffff00;
  public final static int green    =0x00ff00;
  public final static int magenta  =0xff00ff;
  public final static int cyan     =0x00ffff;
  public final static int blue     =0x0000ff;
  
  public final static int rgb(int r,int g,int b)
  { if(r<0 || r>255 || g<0 || g>255 || b<0 || b>255)
    throw new IllegalArgumentException("Value out of range");
    return((r<<16)|(g<<8)|b);
  }  

}